import { Hono, Context } from 'hono'
import { transactionRecordController } from '../controllers/index'
// import { isAdmin, protect } from '../middlewares/index'

const router = new Hono()


// router.get('/', protect, isAdmin, (c: Context) => transactionRecordController.getTransactionRecordList(c))
router.get('/list', (c: Context) => transactionRecordController.getTransactionRecordList(c))
router.post('/add', (c: Context) => transactionRecordController.createTransactionRecord(c))

export default router
